{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="id" value="{$data.id}">
    <input type="hidden" name="shop_id" value="{$data.shop_id}">
    <input type="hidden" name="salesperson_id" value="{$data.salesperson_id}">
    <div class="layui-form-item">
        <label class="layui-form-label">手机号码</label>
        <div class="layui-input-block">
            <input type="text" value="{$data.phone}"  name="row[phone]"  readonly  autocomplete="off" placeholder="手机号码"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商家金额</label>
        <div class="layui-input-block">
            <input   type="number" name="row[reward1]"  value="{$data.reward1+$data.commission1}" readonly  autocomplete="off" placeholder="商家奖励(不填写为套餐默认值)"
                    class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">业务员金额</label>
        <div class="layui-input-block">
            <input    type="number" name="row[reward2]" value="{$data.reward2+$data.commission2}" readonly  autocomplete="off" placeholder="业务员奖励(不填写为套餐默认值)"
                    class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">异常类型</label>
        <div class="layui-input-block">
            <select name="row[yc]" lay-verify="required" lay-filter="ccc62" lay-search>
                <option></option>
                {volist name="yc_list" id="vo"}
                <option value="{$vo.name}"
                <?php if( $vo['name'] == $data['yc']){ ?> selected <?php }?>>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商家扣款金额</label>
        <div class="layui-input-block">
            <input   type="number" lay-verify="required" name="row[money1]" readonly value="{$data.money1}"  autocomplete="off" placeholder="商家扣款金额"
                     class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">业务员扣款金额</label>
        <div class="layui-input-block">
            <input    type="number" lay-verify="required" name="row[money2]" readonly value="{$data.money2}"  autocomplete="off" placeholder="业务员扣款金额"
                      class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">是否记录反诈异常</label>
        <div class="layui-input-block" id="is_c3">

            <input type="radio" name="row[is_z]" value="0" title="否" {if $data.is_z==0}checked{/if}
                   lay-filter="ccc3">

            <input type="radio" name="row[is_z]" value="1" title="是" {if $data.is_z==1}checked{/if}
                   lay-filter="ccc3">
        </div>
    </div>

    <div class="layui-form-item r1">
        <label class="layui-form-label">异常备注</label>
        <div class="layui-input-block">
            <input type="text" name="row[yc_desc]" readonly autocomplete="off" placeholder="异常备注" class="layui-input"
                   value="{$data.yc_desc}">
        </div>
    </div>


<!--    <div class="layui-form-item layer-footer">-->
<!--        <div class="layui-input-block">-->
<!--            <button class="layui-btn" lay-submit="">立即提交</button>-->
<!--            <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
<!--        </div>-->
<!--    </div>-->

</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}